{ //=========Macro generated from canvas: MyRecoDisplay/MyRecoDisplay //========= (Tue Jul 25 09:55:31 2006) by ROOT version5.08/00 TCanvas *c = new TCanvas("c", "c",526,21,800,800); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c->SetFillColor(10); c->SetBorderMode(0); c->SetBorderSize(2); c->SetHighLightColor(2); c->Range(-800,-800,7200,7200); c->SetBorderSize(2); c->SetFrameFillColor(0); TBox* tpc = new TBox(0.,329.,2247.5,1808.); TBox* tpco = new TBox(0.,329.,2247.5,1808.); tpc->SetFillColor(19); tpc->SetFillStyle(1000); tpco->SetLineColor(1); tpco->SetLineWidth(2); tpco->SetFillStyle(0); tpc->Draw(); tpco->Draw(); TBox* tpcr = new TBox(2247.5,329.,2348.,1808.); TBox* tpcro = new TBox(0.,329.,2348.,1808.); tpcr->SetFillColor(19); tpcr->SetFillStyle(1000); tpcro->SetLineColor(1); tpcro->SetLineWidth(2); tpcro->SetFillStyle(0); tpcr->Draw(); tpcro->Draw(); TBox* ecal = new TBox(0,1847.4,2350.,2019.6); TBox* ecalo = new TBox(0.,1847.4,2350.,2019.6); ecal->SetFillColor(20); ecal->SetFillStyle(1000); ecal->SetLineColor(1); ecalo->SetLineWidth(2); ecalo->SetFillStyle(0); ecal->Draw(); ecalo->Draw(); TBox* lcal = new TBox(2506.9,80.,2635.,195.2); TBox* lcalo = new TBox(2506.9,80.,2635.,195.2); lcal->SetFillColor(20); lcal->SetFillStyle(1000); lcal->SetLineColor(1); lcalo->SetLineWidth(2); lcalo->SetFillStyle(0); lcal->Draw(); lcalo->Draw(); TBox* ecale = new TBox(2450.,250.,2624.1,2088.8); TBox* ecaleo = new TBox(2450.,250.,2624.1,2088.8); ecale->SetFillColor(20); ecale->SetFillStyle(1000); ecale->SetLineColor(1); ecaleo->SetLineWidth(2); ecaleo->SetFillStyle(0); ecale->Draw(); ecaleo->Draw(); Double_t *dum = 0; pline = new TPolyLine(2,dum,dum,""); pline->SetLineWidth(2); pline->SetPoint(0,2450.,400); pline->SetPoint(1,2624.1,400); pline->Draw(""); TBox* hcal = new TBox(0.,2058.,2350.,3330.); TBox* hcalo = new TBox(0.,2058.,2350.,3330.); hcal->SetFillColor(18); hcal->SetFillStyle(1000); hcal->SetLineColor(1); hcalo->SetLineWidth(2); hcalo->SetFillStyle(0); hcal->Draw(); hcalo->Draw(); TBox* lhcal = new TBox(2680,93.,3205.,330.6); TBox* lhcalo = new TBox(2680,93.,3205.,330.6); lhcal->SetFillColor(18); lhcal->SetFillStyle(1000); lhcal->SetLineColor(1); lhcalo->SetLineWidth(2); lhcalo->SetFillStyle(0); lhcal->Draw(); lhcalo->Draw(); TBox* hcale = new TBox(2650.,350.,3922.,3090.4); TBox* hcaleo = new TBox(2650.,350.,3922.,3090.4); hcale->SetFillColor(18); hcale->SetFillStyle(1000); hcale->SetLineColor(1); hcaleo->SetLineWidth(2); hcaleo->SetFillStyle(0); hcale->Draw(); hcaleo->Draw(); TBox* hcalr = new TBox(2450.,2138.8,2609,3090.4); TBox* hcalro = new TBox(2450.,2138.8,2609,3090.4); hcalr->SetFillColor(18); hcalr->SetFillStyle(1000); hcalr->SetLineColor(1); hcalro->SetLineWidth(2); hcalro->SetFillStyle(0); hcalr->Draw(); hcalro->Draw(); TBox* coil = new TBox(0.,3440.,3872.,4190.); TBox* coilo = new TBox(0.,3440.,3872.,4190.); coil->SetFillColor(16); coil->SetFillStyle(1000); coilo->SetLineColor(1); coilo->SetLineWidth(2); coilo->SetFillStyle(0); coil->Draw(); coilo->Draw(); TBox* y = new TBox(0.,4440.,4047.,6990.); TBox* yo = new TBox(0.,4440.,4047.,6990.); y->SetFillColor(16); y->SetFillStyle(1000); y->SetLineColor(1); yo->SetLineWidth(2); yo->SetFillStyle(0); y->Draw(); yo->Draw(); TBox* ye = new TBox(4072.,300.,6622.,6990.); TBox* yeo = new TBox(4072.,300.,6622.,6990.); ye->SetFillColor(16); ye->SetFillStyle(1000); ye->SetLineColor(1); yeo->SetLineWidth(2); yeo->SetFillStyle(0); ye->Draw(); yeo->Draw(); TBox* yp = new TBox(3982.,300.,4072.,3090.); TBox* ypo = new TBox(3982.,300.,4072.,3090.); yp->SetFillColor(16); yp->SetFillStyle(1000); yp->SetLineColor(1); ypo->SetLineWidth(2); ypo->SetFillStyle(0); yp->Draw(); ypo->Draw(); Double_t *dum = 0; pline = new TPolyLine(2,dum,dum,""); pline->SetLineWidth(1); pline->SetPoint(0,-50.,0.); pline->SetPoint(1,7050,0.); pline->Draw(""); sit1 = new TPolyLine(2,dum,dum,""); sit1->SetLineWidth(2); sit1->SetPoint(0,0.,165.); sit1->SetPoint(1,371.3,165.); sit1->Draw(""); sit2 = new TPolyLine(2,dum,dum,""); sit2->SetLineWidth(2); sit2->SetPoint(0,0.,309.); sit2->SetPoint(1,644.9,309.); sit2->Draw(""); ftd1 = new TPolyLine(2,dum,dum,""); ftd1->SetLineWidth(2); ftd1->SetPoint(0,220.,39.); ftd1->SetPoint(1,220.,164.); ftd1->Draw(""); ftd2 = new TPolyLine(2,dum,dum,""); ftd2->SetLineWidth(2); ftd2->SetPoint(0,371.,46.6); ftd2->SetPoint(1,371.,164.); ftd2->Draw(""); ftd3 = new TPolyLine(2,dum,dum,""); ftd3->SetLineWidth(2); ftd3->SetPoint(0,644.9,70.1); ftd3->SetPoint(1,644.9,308.); ftd3->Draw(""); ftd4 = new TPolyLine(2,dum,dum,""); ftd4->SetLineWidth(2); ftd4->SetPoint(0,1046.1,100.3); ftd4->SetPoint(1,1046.1,309.); ftd4->Draw(""); ftd5 = new TPolyLine(2,dum,dum,""); ftd5->SetLineWidth(2); ftd5->SetPoint(0,1447.3,130.4); ftd5->SetPoint(1,1447.3,309.); ftd5->Draw(""); ftd6 = new TPolyLine(2,dum,dum,""); ftd6->SetLineWidth(2); ftd6->SetPoint(0,1848.5,160.4); ftd6->SetPoint(1,1848.5,309.); ftd6->Draw(""); ftd7 = new TPolyLine(2,dum,dum,""); ftd7->SetLineWidth(2); ftd7->SetPoint(0,2250.1,190.5); ftd7->SetPoint(1,2250.1,309.); ftd7->Draw(""); vtx1 = new TPolyLine(2,dum,dum,""); vtx1->SetLineWidth(1); vtx1->SetPoint(0, 0. , 16.); vtx1->SetPoint(1,62.5 , 16.); vtx1->Draw(""); vtx2 = new TPolyLine(2,dum,dum,""); vtx2->SetLineWidth(1); vtx2->SetPoint(0, 0. , 17.9); vtx2->SetPoint(1,62.5 , 17.9); vtx2->Draw(""); vtx3 = new TPolyLine(2,dum,dum,""); vtx3->SetLineWidth(1); vtx3->SetPoint(0, 0. , 37.); vtx3->SetPoint(1,125. , 37.); vtx3->Draw(""); vtx4 = new TPolyLine(2,dum,dum,""); vtx4->SetLineWidth(1); vtx4->SetPoint(0, 0. , 38.9); vtx4->SetPoint(1,125. , 38.9); vtx4->Draw(""); vtx5 = new TPolyLine(2,dum,dum,""); vtx5->SetLineWidth(1); vtx5->SetPoint(0, 0. , 58.); vtx5->SetPoint(1,125. , 58.); vtx5->Draw(""); vtx6 = new TPolyLine(2,dum,dum,""); vtx6->SetLineWidth(1); vtx6->SetPoint(0, 0. , 59.9); vtx6->SetPoint(1,125. , 59.9); vtx6->Draw(""); float yy[7] = {0.,329.,1808.,2020.,3330.,4190.,6990.}; float xx[6] = {0.,2348.,2622.,3922.,4072.,6622.}; for(int i=0;i<7;i++){ pline = new TPolyLine(2,dum,dum,""); pline->SetLineWidth(2); pline->SetPoint(0,-50.,yy[i]); pline->SetPoint(1,-150.,yy[i]); pline->Draw(""); } for(int i=0;i<6;i++){ pline = new TPolyLine(2,dum,dum,""); pline->SetLineWidth(2); pline->SetPoint(0,xx[i],-50); pline->SetPoint(1,xx[i],-150); pline->Draw(""); } TLatex* ltext = new TLatex(-650,329,"329"); ltext->SetTextSize(0.025); ltext->SetTextAlign(12); ltext->Draw(); TLatex* ltext = new TLatex(-650,0,"0"); ltext->SetTextSize(0.025); ltext->SetTextAlign(12); ltext->Draw(); TLatex* ltext = new TLatex(-650,1808,"1808"); ltext->SetTextSize(0.025); ltext->SetTextAlign(12); ltext->Draw(); TLatex* ltext = new TLatex(-650,2020,"2020"); ltext->SetTextSize(0.025); ltext->SetTextAlign(12); ltext->Draw(); TLatex* ltext = new TLatex(-650,3330,"3330"); ltext->SetTextSize(0.025); ltext->SetTextAlign(12); ltext->Draw(); TLatex* ltext = new TLatex(-650,4190,"4190"); ltext->SetTextSize(0.025); ltext->SetTextAlign(12); ltext->Draw(); TLatex* ltext = new TLatex(-650,6990,"6990"); ltext->SetTextSize(0.025); ltext->SetTextAlign(12); ltext->Draw(); TLatex* ltext = new TLatex(0,-400,"0"); ltext->SetTextSize(0.025); ltext->SetTextAlign(21); ltext->Draw(); TLatex* ltext = new TLatex(2348,-400,"2348"); ltext->SetTextSize(0.025); ltext->SetTextAlign(32); ltext->Draw(); TLatex* ltext = new TLatex(2622,-400,"2622"); ltext->SetTextSize(0.025); ltext->SetTextAlign(12); ltext->Draw(); TLatex* ltext = new TLatex(3922,-400,"3922"); ltext->SetTextSize(0.025); ltext->SetTextAlign(32); ltext->Draw(); TLatex* ltext = new TLatex(4072,-400,"4072"); ltext->SetTextSize(0.025); ltext->SetTextAlign(12); ltext->Draw(); TLatex* ltext = new TLatex(6622,-400,"6622"); ltext->SetTextSize(0.025); ltext->SetTextAlign(22); ltext->Draw(); TLatex* ltext = new TLatex(850,950,"TPC"); ltext->SetTextSize(0.025); ltext->Draw(); TLatex* ltext = new TLatex(850,1865,"ECAL"); ltext->SetTextSize(0.025); ltext->Draw(); TLatex* ltext = new TLatex(850,2665,"HCAL"); ltext->SetTextSize(0.025); ltext->Draw(); TLatex* ltext = new TLatex(850,3700,"Coil + Cryostat"); ltext->SetTextSize(0.025); ltext->Draw(); TLatex* ltext = new TLatex(850,5500,"Yoke"); ltext->SetTextSize(0.025); ltext->Draw(); c->cd(); c->Modified(); c->cd(); c->SetSelected(c); c->SaveAs("ildquad.gif"); c->SaveAs("ildquad.eps"); }